﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;
using WMS.OutboundManagement.OutboundDetailss;

namespace WMS.OutboundManagement.Shippeds
{
    /// <summary>
    /// 客户出货服务
    /// </summary>
    public class ShippedAppService:ApplicationService, IShippedAppService
    {
        /// <summary>
        /// 客户出货仓储接口
        /// </summary>
        private readonly IRepository<Shipped> _shippedrepository;

        /// <summary>
        /// 出货明细仓储接口
        /// </summary>
        private readonly IRepository<OutboundDetails> _outbounddetailsrepository;

        /// <summary>
        /// 映射
        /// </summary>
        private readonly IMapper _mapper;

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="shippedrepository">客户出货仓储接口</param>
        /// <param name="outbounddetailsrepository">出货明细仓储接口</param>
        /// <param name="mapper">映射</param>
        public ShippedAppService(IRepository<Shipped> shippedrepository, IRepository<OutboundDetails> outbounddetailsrepository, IMapper mapper)
        {
            _shippedrepository = shippedrepository;
            _outbounddetailsrepository = outbounddetailsrepository;
            _mapper = mapper;
        }
    }
}
